package com.atguigu.day07;

public class Test01 {
    public static void main(String[] args) {
        Employee p1 = new Employee();
        Employee p2 = new Employee();
        p1.id = 1;
        p1.name = "张三";
        p1.age = 23;
        p1.salary = 10000.0;
        p2.id = 2;
        p2.name = "李四";
        p2.age = 22;
        p2.salary = 11000.0;
        System.out.println("员工1的编号:" + p1.id + "，姓名：" + p1.name + "，年龄：" + p1.age + "，薪资：" + p1.salary);
        System.out.println("员工2的编号:" + p2.id + "，姓名：" + p2.name + "，年龄：" + p2.age + "，薪资：" + p2.salary);
    }
}

class Employee {
    int id;
    String name;
    int age;
    double salary;
}
